home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / OEMNADLT.IN_ / oemnadlt.inf
INI File  |  1996-07-12  |  23KB  |  589 lines

  1. [Identification]
  2.    OptionType = NetAdapter
  3. [PlatformsSupported]
  4.    ISA
  5.    EISA
  6.    "Jazz-Internal Bus"
  7. [Options]
  8.    LT200
  9. [IOBaseAddrChoices]
  10. IOBase_1  = "0x200",512
  11. IOBase_2  = "0x240",576
  12. IOBase_3  = "0x260",608
  13. IOBase_4  = "0x2A0",672
  14. IOBase_5  = "0x300",768
  15. IOBase_6  = "0x320",800
  16. IOBase_7  = "0x330",816
  17. IOBase_8  = "0x340",832
  18. IOBase_9  = "0x350",848
  19. [FileConstants]
  20. UtilInf                 = "UTILITY.INF"
  21. SubInf                  = "SUBROUTN.INF"
  22. SoftwareType    = "driver"
  23. Manufacturer            = "Microsoft"
  24. ProductMajorVersion     = "4"
  25. ProductMinorVersion     = "0"
  26. ProductVersion          = $(ProductMajorVersion)"."$(ProductMinorVersion)
  27. ProductSoftwareName      = "lt200"
  28. ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\lt200.sys"
  29. NetRuleSoftwareType      = "Lt200Sys ltkndisDriver lt200Driver"
  30. NetRuleSoftwareUse           = $(SoftwareType)
  31. NetRuleSoftwareBindForm  = """Lt200Sys"" yes no container"
  32. NetRuleSoftwareClass     = {"lt200Driver basic","ltkndisDriver basic yes"}
  33. NetRuleSoftwareBindable  = {"lt200Driver lt200Adapter non exclusive 100",+
  34.                             "ltkndisDriver lt200Driver non non 100"}
  35. ProductEventDll                  = "%SystemRoot%\System32\netevent.dll"
  36. ProductHardwareName      = "lt200"
  37. NetRuleHardwareType      = "lt200 lt200Adapter"
  38. NetRuleHardwareBindForm  = " yes yes container"
  39. NetRuleHardwareClass     = {"lt200Adapter basic"}
  40. ProductOpSupport     = 134 
  41. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  42. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  43. CardKey         = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
  44. ProductInfName  = "oemnadlt.inf"
  45. [GeneralConstants]
  46. KeyNull                         = ""
  47. MAXIMUM_ALLOWED                 = 33554432
  48. RegistryErrorIndex              = NO_ERROR
  49. KeyProduct                  = ""
  50. KeyParameters                   = ""
  51. TRUE                        = 1
  52. FALSE                       = 0
  53. NoTitle                     = 0
  54. [date]
  55. Now = {} ? $(!LIBHANDLE) GetSystemDate
  56. [Identify]
  57.    read-syms Identification
  58.    set Status     = STATUS_SUCCESSFUL
  59.    set Identifier = $(OptionType)
  60.    set Media      = #("Source Media Descriptions", 1, 1)
  61.    Return $(Status) $(Identifier) $(Media)
  62. [ReturnOptions]
  63.    set Status        = STATUS_FAILED
  64.    set OptionList     = {}
  65.    set OptionTextList = {}
  66.    set LanguageList = ^(LanguagesSupported, 1)
  67.    Ifcontains(i) $($0) in $(LanguageList)
  68.       ifstr(i) $($1) == ""
  69.                  goto returnoptions
  70.       endif
  71.           set PlatformList = ^(PlatformsSupported, 1)
  72.           Ifcontains(i) $($1) in $(PlatformList)
  73.                  goto returnoptions
  74.           else
  75.                  set Status = STATUS_NOTSUPPORTED
  76.                  goto finish_ReturnOptions
  77.           endif
  78.    else
  79.           set Status = STATUS_NOLANGUAGE
  80.       goto finish_ReturnOptions
  81.    endif
  82. returnoptions = +
  83.    set OptionList     = ^(Options, 1)
  84.    set OptionTextList = ^(OptionsText$($0), 1)
  85.    set Status         = STATUS_SUCCESSFUL
  86. finish_ReturnOptions = +
  87.    Return $(Status) $(OptionList) $(OptionTextList)
  88. [InstallOption]
  89.    set Status   = STATUS_FAILED
  90.    set Option   = $($1)
  91.    set SrcDir       = $($2)
  92.    Set AddCopy  = $($3)
  93.    Set DoCopy       = $($4)
  94.    Set DoConfig = $($5)
  95.    set LanguageList = ^(LanguagesSupported, 1)
  96.    Ifcontains(i) $($0) NOT-IN $(LanguageList)
  97.      return STATUS_NOLANGUAGE
  98.    EndIf
  99.    StartWait
  100.    set-subst LF = "\n"
  101.    set-subst CR = "\r"
  102.    read-syms GeneralConstants
  103.    read-syms FileConstants
  104.    read-syms DialogConstants$(!STF_LANGUAGE)
  105.    read-syms FileConstants$(!STF_LANGUAGE)
  106.    detect date
  107.    set-title  $(FunctionTitle)
  108.    set CommonStatus = STATUS_SUCCESSFUL
  109.    EndWait
  110. Begin = +
  111.    Ifstr(i) $(!NTN_InstallMode) == deinstall
  112.           set StartLabel = removeadapter
  113.           Set RemoveonError = FALSE
  114.    else-Ifstr(i) $(!NTN_InstallMode) == Update
  115.           set StartLabel = UpgradeSoftware
  116.    else-Ifstr(i) $(!NTN_InstallMode) == bind
  117.       set StartLabel = bindingadapter
  118.    else-Ifstr(i) $(!NTN_InstallMode) == configure
  119.           set StartLabel = configureadapter
  120.       Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  121.                  Debug-Output "Cannot configure the localtalk driver software."
  122.          Shell $(UtilInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  123.          ifint $($ShellCode) != $(!SHELL_CODE_OK)
  124.                         goto ShellCodeError
  125.          endif
  126.          set Error = $($R0)
  127.                  Shell $(SubInf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(Error)
  128.                  goto usercancel
  129.       endif
  130.    else
  131.           set StartLabel = installadapter
  132.           set REMOVE_SOFTWARE = TRUE
  133.       set REMOVE_HARDWARE = {}
  134.           Set RemoveOnError = TRUE
  135.    endif
  136.    goto $(StartLabel)
  137. installadapter = +
  138.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  139.    Ifstr $(KeyProduct) != $(KeyNull)
  140.           GetRegValue $(KeyProduct) $(MajorVersion) VersionInfo
  141.           set VersionMajor = *($(VersionInfo), 4)
  142.           GetRegValue $(KeyProduct) $(MinorVersion) VersionInfo
  143.           set VersionMinor = *($(VersionInfo), 4)
  144.           set InstalledVersion = $(VersionMajor)"."$(VersionMinor)
  145.           ifstr(i) $(ProductVersion) == $(InstalledVersion)
  146.                  read-syms MiscErrorString1$(!STF_LANGUAGE)
  147.          Set Text = $(Version)$(ProductVersion)
  148.          Shell $(SubInf), SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(Text)$(ErrorString)
  149.          goto end
  150.           EndIf
  151.    EndIf
  152.    ifstr(i) $(!NTN_InstallMode) == "install"
  153.           Ifstr(i) $(!DoCopy) == "YES"
  154.                  Shell $(UtilInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  155.                  Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  156.                         Goto ShellCodeError
  157.                  Else-Ifstr(i) $($R0) == STATUS_FAILED
  158.                         Shell $(UtilInf) RegistryErrorString "ASK_SOURCE_FAIL"
  159.                         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  160.                            goto ShellCodeError
  161.                         endif
  162.                         set Error = $($R0)
  163.                         Goto end
  164.                  Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  165.                         Goto usercancel
  166.                  Endif
  167.                  Set SrcDir  = $($R1)
  168.           Endif
  169.    Endif
  170.    install "Install-Initial"
  171.    ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  172.           Set CommonStatus = STATUS_USERCANCEL
  173.           goto end
  174.    Endif
  175. adapteroptions = +
  176.    set IOBaseAddrValue = *($(IOBaseAddrList), 8)
  177.    read-syms FileDependentDlg$(!STF_LANGUAGE)
  178.    ui start "InputDlg"
  179.    ifstr(i) $(DLGEVENT) == "CONTINUE"
  180.           set IOBaseAddrIndex = $(Combo1Out)
  181.       ui pop 1
  182.    else-ifstr(i) $(DLGEVENT) == "EXIT"
  183.           set CommonStatus = STATUS_USERCANCEL
  184.       ui pop 1
  185.       goto usercancel
  186.    else
  187.           set CommonStatus = STATUS_USERCANCEL
  188.           ui pop 1
  189.           goto usercancel
  190.    endif
  191. installproduct = +
  192.    Set FLibraryErrCtl = 1
  193.    Shell $(UtilInf), AddSoftwareComponent, +
  194.                                          $(Manufacturer),+
  195.                                          $(ProductSoftwareName), +
  196.                                          $(ProductSoftwareName), +
  197.                                          $(ProductSoftwareName), +
  198.                                          $(ProductInfName), +
  199.                                          $(ProductSoftwareImagePath),+
  200.                                          "kernel", "NDIS", {}, "", $(ProductEventDll)
  201.    ifint $($ShellCode) != 0
  202.           goto ShellCodeError
  203.    endif
  204.    set RegistryErrorIndex = $($R0)
  205.    set KeyProduct      = $($R1)
  206.    Set SoftNetRulesKey = $($R2)
  207.    CloseRegKey $($R3)
  208.    CloseRegKey $($R4)
  209.    CloseRegKey $($R5)
  210.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  211.           CloseRegKey $(KeyProduct)
  212.           CloseRegKey $(SoftNetRulesKey)
  213.           goto fatalregistry
  214.    endif
  215.    set NewValueList = +
  216.                         {{SoftwareType,0,$(!REG_VT_SZ),$(SoftwareType)},+
  217.             {MajorVersion,0,$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  218.             {MinorVersion,0,$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  219.             {Title,0,$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  220.             {Description,0,$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  221.             {PathName,0,$(!REG_VT_SZ),$(!STF_WINDOWSSYSPATH)},+
  222.             {ServiceName,0,$(!REG_VT_SZ),$(ProductSoftwareName)},+
  223.             {InstallDate,0,$(!REG_VT_DWORD),*($(Now),1)}}
  224.    Shell   $(UtilInf), AddValueList, $(KeyProduct), $(NewValueList)
  225.    ifint $($ShellCode) != 0
  226.           goto ShellCodeError
  227.    endif
  228.    set RegistryErrorIndex = $($R0)
  229.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  230.           CloseRegKey $(KeyProduct)
  231.           CloseRegKey $(SoftNetRulesKey)
  232.           goto fatalregistry
  233.    endif
  234.    set NewValueList = +
  235.                         {{type,0,$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  236.             {use,0,$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  237.             {bindform,0,$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  238.             {class,0,$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  239.             {bindable,0,$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  240.             {InfOption,0,$(!REG_VT_SZ),$(Option)}, +
  241.             {Infname ,0,$(!REG_VT_SZ),$(ProductInfName)}}
  242.    Shell  $(UtilInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  243.    ifint $($ShellCode) != 0
  244.           goto ShellCodeError
  245.    endif
  246.    set RegistryErrorIndex = $($R0)
  247.    CloseRegKey $(KeyProduct)
  248.    CloseRegKey $(SoftNetRulesKey)
  249.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  250.           Debug-Output "Resgitry error: add value list."
  251.           goto fatalregistry
  252.    endif
  253.    Shell $(UtilInf), AddHardwareComponent, $(ProductHardwareName),$(ProductInfName),$(ProductKeyName)
  254.    ifint $($R4) != -1
  255.           Set REMOVE_HARDWARE = >($(REMOVE_HARDWARE), $(CardKey)"\"$($R4))
  256.    endif
  257.    ifint $($ShellCode) != 0
  258.           goto ShellCodeError
  259.    endif
  260.    set RegistryErrorIndex = $($R0)
  261.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  262.           EndWait
  263.           CloseRegKey $($R1)
  264.           CloseRegKey $($R2)
  265.           CloseRegKey $($R3)
  266.           goto fatalregistry
  267.    Endif
  268.    set KeyParameters = $($R3)
  269.    set KeyAdapterRules = $($R2)
  270.    set AdapterNumber = $($R4)
  271.    set NewValueList = {{Manufacturer,0,$(!REG_VT_SZ),$(Manufacturer)},+
  272.                       {Title,0,$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  273.                       {Description,0,$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  274.                       {ProductName,0,$(!REG_VT_SZ),$(ProductHardwareName)},+
  275.                       {ServiceName,0,$(!REG_VT_SZ),$($R5)},+
  276.                       {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  277.                       {InstallDate,0,$(!REG_VT_DWORD),*($(Now),1)}}
  278.    Shell  $(UtilInf), AddValueList, $($R1), $(NewValueList)
  279.    ifint $($ShellCode) != 0
  280.      goto ShellCodeError
  281.    endif
  282.    CloseRegKey $($R1)
  283.    set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  284.    set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  285.    set NewValueList = +
  286.                         {{type,0,$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  287.             {bindform,0,$(!REG_VT_SZ),$(TempBindForm)}, +
  288.             {class,0,$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  289.             {InfOption,0,$(!REG_VT_SZ),$(Option)}, +
  290.             {Infname ,0,$(!REG_VT_SZ),$(ProductInfName)}}
  291.    Shell  $(UtilInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  292.    ifint $($ShellCode) != 0
  293.           goto ShellCodeError
  294.    endif
  295.    set RegistryErrorIndex = $($R0)
  296.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  297.           CloseRegKey $(KeyParameters)
  298.           CloseRegKey $(KeyAdapterRules)
  299.           goto fatalregistry
  300.    endif
  301.    CloseRegKey $(KeyAdapterRules)
  302.    goto writeparameters
  303. configureadapter = +
  304.    OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  305.    Ifstr $(KeyProduct) == $(KeyNull)
  306.           set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  307.       goto fatalregistry
  308.    Endif
  309.    Shell $(UtilInf) FindService, $(KeyProduct)
  310.    Ifint $($ShellCode) != 0
  311.           Goto ShellCodeError
  312.    Endif
  313.    Ifstr(i) $($R0) != NO_ERROR
  314.         Goto fatalregistry
  315.    endif
  316.    set KeyParameters = $($R2)
  317.    CloseRegKey $($R1)
  318.    Ifstr $(KeyParameters) == $(KeyNull)
  319.           set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  320.       goto fatalregistry
  321.    endif
  322.    set ValueName = ""
  323.    set ValueData = ""
  324.    set ValueStr  = ""
  325.    set ValueList = {}
  326.    EnumRegValue $(KeyParameters) ValueList
  327.    ForListDo $(ValueList)
  328.           set ValueItem = $($)
  329.           set ValueName = *($(ValueItem),1)
  330.           set ValueData = *($(ValueItem),4)
  331.           ifstr(i) $(ValueName) == "IOBaseAddress"
  332.                  set IOBaseAddrIndex = $(ValueData)
  333.           endif
  334.    EndForListDo
  335.    set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
  336.    ifstr(i) $(IOBaseAddrValue) == ""
  337.           set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  338.    endif
  339. cfgoptions = +
  340.     ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
  341.         ifstr(i) $(!AutoNetInterfaceType) != ""
  342.             set BusType = $(!AutoNetInterfaceType)
  343.         else
  344.             set BusType = 1    
  345.         endif
  346.         ifstr(i) $(!AutoNetBusNumber) != ""
  347.             set BusNumber = $(!AutoNetBusNumber)
  348.         else
  349.             set BusNumber = 0
  350.         endif
  351.         goto writeparameters_1
  352.     endif
  353.    read-syms FileDependentDlg$(!STF_LANGUAGE)
  354.    ui start "InputDlg"
  355.    ifstr(i) $(DLGEVENT) == "CONTINUE"
  356.           set CommonStatus = STATUS_REBOOT
  357.       set IOBaseAddrIndex = $(Combo1Out)
  358.       ui pop 1
  359.    else-ifstr(i) $(DLGEVENT) == "EXIT"
  360.           ui pop 1
  361.       goto usercancel
  362.    else
  363.       ui pop 1
  364.       goto usercancel
  365.    endif
  366. writeparameters = +
  367.    Shell $(UtilInf),GetBusTypeDialog,$(ProductHardwareDescription) "1" "0"
  368.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  369.        Debug-Output "ShellCode error."
  370.        goto ShellCodeError
  371.    endif
  372.    set BusType = $($R1)
  373.    set BusNumber = $($R2)
  374. writeparameters_1 = +
  375.    set IOBaseAddrValue = *($(IOBaseAddrValues), +
  376.                           ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
  377.    set NewValueList = {{MediaType,0,$(!REG_VT_DWORD),5},+
  378.                        {InterruptNumber,0,$(!REG_VT_DWORD),0},+
  379.                        {BusType,0,$(!REG_VT_DWORD),$(BusType)},+
  380.                        {BusNumber,0,$(!REG_VT_DWORD),$(BusNumber)},+
  381.                        {IOBaseAddress,0,$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  382.    Shell  $(UtilInf), AddValueList, $(KeyParameters), $(NewValueList)
  383.    ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
  384.        Shell $(UtilityInf),AddDefaultNetCardParameters,$(KeyParameters)
  385.    endif
  386.    CloseRegKey $(KeyParameters)
  387.    ifint $($ShellCode) != 0
  388.           Debug-Output "ShellCode error."
  389.       goto ShellCodeError
  390.    endif
  391.    set RegistryErrorIndex = $($R0)
  392.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  393.           Debug-Output "Registry error: Add value list"
  394.       goto fatalregistry
  395.    endif
  396.    goto end
  397. removeadapter = +
  398.    Set FLibraryErrCtl = 1
  399.    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  400.           Shell $(UtilInf), RemoveSoftwareComponent, $(Manufacturer),+
  401.                                                 $(ProductSoftwareName)
  402.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  403.          goto ShellCodeError
  404.       endif
  405.       set RegistryErrorIndex = $($R0)
  406.       Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  407.                  goto fatalregistry
  408.       endif
  409.    else
  410.           Debug-Output "Registry Base = "$(!NTN_RegBase)
  411.           Debug-Output "Product Name  = "$(ProductSoftwareName)
  412.           Shell $(UtilInf), RemoveHardwareComponent, $(Manufacturer),+
  413.                                                                  $(ProductSoftwareName), +
  414.                                                                  $(!NTN_RegBase)
  415.       ifint $($ShellCode) != $(!SHELL_CODE_OK)
  416.                  Debug-Output "ShellCode error"
  417.          goto ShellCodeError
  418.       endif
  419.       set RegistryErrorIndex = $($R0)
  420.       Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  421.                  goto fatalregistry
  422.       endif
  423.    endif
  424.    goto end
  425. UpgradeSoftware = +
  426.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  427.     Ifstr $(KeyProduct) != $(KeyNull)
  428.         install "Install-Update"
  429.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  430.             goto fatal
  431.         endif
  432.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  433.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  434.         CloseRegKey $(KeyProduct)
  435.     else
  436.         goto fatalregistry
  437.     endif
  438.     set iSearch = 1
  439. nextnetcard = +
  440.     Shell $(UtilityInf), FindNextNetworkCard, $(ProductHardwareName), $(iSearch)
  441.     set KeyNetcard = $($R0)
  442.     set iSearch = $($R1)
  443.     Debug-Output "OemNadEp.Inf: FindNextNetworkCard "$(KeyNetcard)","$(iSearch)
  444.     Ifstr $(KeyNetcard) != $(KeyNull)
  445.         Debug-Output "OemNadEp.Inf: Setting OperationsSupport value"
  446.         SetRegValue $(KeyNetcard) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  447.         CloseRegKey $(KeyNetcard)
  448.         goto nextnetcard
  449.     Endif
  450.     goto end
  451. abandon = +
  452.    ForListDo $(REMOVE_HARDWARE)
  453.           Shell $(UtilInf), RemoveHardwareComponent, $(Manufacturer), +
  454.                                            $(ProductSoftwareName), +
  455.                                                                                    $($)
  456.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  457.                  goto ShellCodeError
  458.           endif
  459.           set RegistryErrorIndex = $($R0)
  460.           Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  461.                  goto fatalregistry
  462.           endif
  463.    EndForListDo
  464.    Ifstr(i) $(REMOVE_SOFTWARE) == TRUE
  465.           Shell $(UtilInf), RemoveSoftwareComponent, $(Manufacturer), +
  466.                                                          $(ProductSoftwareName), FALSE
  467.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  468.                  goto ShellCodeError
  469.           endif
  470.           set RegistryErrorIndex = $($R0)
  471.           Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  472.                  goto fatalregistry
  473.           endif
  474.    endif
  475.    goto end
  476. fatalregistry = +
  477.    Shell $(UtilInf) RegistryErrorString $(RegistryErrorIndex)
  478.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  479.           goto ShellCodeError
  480.    endif
  481.    set Error = $($R0)
  482.    goto fatal
  483. fatal = +
  484.    ifstr(i) $(!NTN_InstallMode) == install
  485.           read-syms MiscErrorString3$(!STF_LANGUAGE)
  486.           Shell $(SubInf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(ErrorString)$(Error)
  487.    Else
  488.           Shell $(SubInf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  489.    EndIf
  490.    ifint $($ShellCode) != 0
  491.           goto ShellCodeError
  492.    endif
  493.    goto setfailed
  494. ShellCodeError = +
  495.    read-syms ShellingError$(!STF_LANGUAGE)
  496.    Shell $(SubInf) SetupMessage $(!STF_LANGUAGE) "FATAL" $(ErrorString)
  497.    goto setfailed
  498. setfailed = +
  499.    set CommonStatus = STATUS_FAILED
  500.    ifstr(i) $(RemoveOnError) == TRUE
  501.           Set RemoveOnError = FALSE
  502.           goto abandon
  503.    else
  504.           goto end
  505.    EndIf
  506. end = +
  507.    Return $(CommonStatus)
  508. usercancel = +
  509.    Set CommonStatus = STATUS_USERCANCEL
  510.    Return $(CommonStatus)
  511. [Install-Update]
  512.    set STF_VITAL        = ""
  513.    AddSectionFilesToCopyList Files-LT200 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  514.    Exit
  515. [Install-Initial]
  516.    set STF_VITAL        = ""
  517.    AddSectionFilesToCopyList Files-LT200 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  518.    CopyFilesInCopyList
  519.    Exit
  520. [Source Media Descriptions]
  521.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom_s.40
  522. [Signature]
  523.     FileType = MICROSOFT_FILE
  524. [GetSignature]
  525.     read-syms Signature
  526.     return $(FileType)
  527. [ProductType]
  528. STF_PRODUCT  = LanmanNT
  529. STF_PLATFORM = I386
  530. [Files-Inf]
  531. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  532. [Files-LT200]
  533. 1,LT200.SYS , SIZE=999
  534. [LanguagesSupported]
  535.    ENG
  536. [OptionsTextENG]
  537.    LT200     = "COPS/DayStar Digital LocalTalk Adapter"
  538. [FileConstantsENG]
  539. ProCaption      = "LocalTalk Adapter Setup"
  540. ProCancel       = "Cancel"
  541. ProCancelMsg    = "LT200 LocalTalk Adapter is not correctly installed. "+
  542.                   "Are you sure you want to cancel copying files ?"
  543. ProCancelCap    = "Network Setup Message"
  544. ProText1        = "Copying:"
  545. ProText2        = "To:"
  546. Error           = "User has cancelled copying files. Copied files will be removed."
  547. FunctionTitle                   = "DayStar Digital LocalTalk Adapter Card Setup"
  548. ProductSoftwareDescription      = "DayStar Digital LocalTalk Adapter Driver"
  549. ProductHardwareDescription  = "DayStar Digital LocalTalk Adapter"
  550. AskLocationText = "Setup needs to copy LocalTalk Adapter files."$(!LF)$(!LF)+
  551.                   "Setup will look for the files in the location specified below. If you want "+
  552.                   "Setup to look in a different place, type the new location. When the location "+
  553.                   "is correct, click Continue."
  554. MajorVersion = "MajorVersion"
  555. MinorVersion = "MinorVersion"
  556. Version          = "Version "
  557. IOBaseAddrList          = ^(IOBaseAddrChoices, 1)
  558. IOBaseAddrValues        = ^(IOBaseAddrChoices, 2)
  559. ProductSoftwareTitle    = "Daystar Digital LocalTalk Adapter Driver"
  560. ProductHardwareTitle    = "DayStar Digital LocalTalk Adapter"
  561. [DialogConstantsENG]
  562. Help        = "&Help"
  563. Exit        = "Cancel"
  564. OK          = "OK"
  565. HelpContext = ""
  566. Continue    = "OK"
  567. Cancel      = "Cancel"
  568. [FileDependentDlgENG]
  569. Label1      = "I/O Base &Addr:"
  570. DlgType                 = "MultiCombo"
  571. DlgTemplate             = "SINGLE_COMBO"
  572. Caption                 = $(FunctionTitle)
  573. Combo1List              = $(IOBaseAddrList)
  574. Combo1Out               = $(IOBaseAddrValue)
  575. ComboListItemsIn                = {Combo1List}
  576. ComboListItemsOut               = {Combo1Out}
  577. HelpContext                     = $(!IDH_DB_OEMNADLT_INS)
  578. [MiscErrorString1ENG]
  579. ErrorString = +
  580. " of the LocalTalk adapter driver is already installed in your system. "+
  581. "Use [Update] to update to newer versions."
  582. [MiscErrorString3ENG]
  583. ErrorString = +
  584. "Setup encountered the following error during installation. Try installing the "+
  585. "LocalTalk Adapter after rebooting your system. "$(!LF)
  586. [ShellingErrorENG]
  587. ErrorString  = +
  588. "An internal error occurred. Contact Technical Support."
  589.